﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace ABPLHQCS.Migrations
{
    /// <inheritdoc />
    public partial class udpatecategory : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropForeignKey(
                name: "FK_AppFormItem_AppFormCategory_FormCategoryId",
                table: "AppFormItem");

            migrationBuilder.DropIndex(
                name: "IX_AppFormItem_FormCategoryId",
                table: "AppFormItem");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateIndex(
                name: "IX_AppFormItem_FormCategoryId",
                table: "AppFormItem",
                column: "FormCategoryId");

            migrationBuilder.AddForeignKey(
                name: "FK_AppFormItem_AppFormCategory_FormCategoryId",
                table: "AppFormItem",
                column: "FormCategoryId",
                principalTable: "AppFormCategory",
                principalColumn: "Id",
                onDelete: ReferentialAction.Cascade);
        }
    }
}
